package study.demo.MES;


/**
 * @author :小马
 * @date : 2024-04-12
 */
public class BusinessException extends RuntimeException {
    private BusinessExceptionEnum e;

    private String message;

    public BusinessException(BusinessExceptionEnum e) {
        this.e = e;
    }

    public BusinessException(BusinessExceptionEnum e, String message) {
        this.e = e;
        this.message = message;
    }

    public BusinessExceptionEnum getE() {
        return e;
    }

    public void setE(BusinessExceptionEnum e) {
        this.e = e;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    /**
     * 不用递归打印日志
     */
    @Override
    public synchronized Throwable fillInStackTrace() {
        return this;
    }
}